<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>复习4-js基础</title>
  <link rel="stylesheet" href="css/common.css">
  <style>
    @keyframes typing {
      0% {
        opacity: 0;
      }

      100% {
        opacity: 1;
      }
    }

    .typing {
      animation: typing 1s infinite linear;
    }
  </style>
</head>

<body>

  <!-- 打字效果 -->
  <div style="font-size: 2rem;">
    <span id="spType"></span>
    <span class="typing">|</span>
  </div>

  <script src="js/fx04.js"></script>
</body>

</html>